<?php
return array(
    /* 数据库设置 */
    'DB_TYPE' => 'mysqli',     // 数据库类型
    'DB_HOST' => '47.90.99.9', // 服务器地址
    'DB_NAME' => 'nongyiwenyao',          // 数据库名
    'DB_USER' => 'ybsat',      // 用户名
    'DB_PWD' => 'yibeizi21.',          // 密码
    'DB_PORT' => '3306',        // 端口
    'DB_PREFIX' => 'destoon_appknow_',    // 数据库表前缀
    'DB_DEBUG' => true, // 开启调试模式 记录SQL日志

    //数据库设置
//    'DB_TYPE' => 'mysql', // 数据库类型
//    'DB_HOST' => '127.0.0.1', // 服务器地址
//    'DB_NAME' => 'nongyiwenyao', // 数据库名
//    'DB_USER' => 'root', // 用户名
//    'DB_PWD' => 'root', // 密码
//    'DB_PORT' => '3306', // 端口
//    'DB_PREFIX' => 'destoon_appknow_', // 数据库表前缀

    /* SESSION设置 */
    'SESSION_AUTO_START' => false, // 是否自动开启Session
    'SESSION_OPTIONS' => array(), // session 配置数组 支持type name id path expire domain 等参数
    'SESSION_TYPE' => '', // session hander类型 默认无需设置 除非扩展了session hander驱动
    'SESSION_PREFIX' => 'nywy', // session 前缀

    'DEFAULT_MODULE' => 'V1', // 默认模块
    'DEFAULT_CONTROLLER' => 'Index', // 默认控制器名称
    'DEFAULT_ACTION' => 'index', // 默认操作名称

    /*URL_MODEL*/
    'URL_MODEL' => 2,
    'URL_HTML_SUFFIX' => '',
    'URL_PATHINFO_DEPR' => '/',
    'URL_ROUTER_ON' => true,
    'URL_CASE_INSENSITIVE' => true,

    /*加密方式*/
    'DATA_CRYPT_TYPE' => 'DES',

    /*接口域名*/
    'API_SITE_PREFIX' => 'http://www.api.ybsat.com/',

    /*默认头像文件路径*/
    'HAND_IMG_PATH' => '/Public/pic_hand_img.png',

    /*加密KEY*/
    'PASS_KEY' => 'IAMYOURFATHER',

    /*信息模块配置*/
    'SMS_UID' => '114294',
    'SMS_PASSWORD' => 'nongyao001_com_sms_send',

    /*支付方式*/
    'PAY_STATUS' => array(
        'CYH_WAIT_PAY' => 'CYH_WAIT_PAY', //等待支付
        'CYH_PAY_W_UP' => 'CYH_PAY_W_UP', //APP端回调支付成功，等待支付宝回调响应
        'CYH_PAY_OK' => 'CYH_PAY_OK', //支付完成
    ),

    //支付类型配置
    'PAY_TYPE' => array(
        'ALIPAY' => '支付宝',
        'SELF' => '余额支付',
        'WEIXIN' => '微信支付',
    ),
    //金币利率为RMB的10倍
    'GOLD_RATE' => 10,

//支付宝配置
    'ALIPAY' => array(
        //应用ID,您的APPID。
        'app_id' => "2017072107837436",
        //商户私钥
        'merchant_private_key' => "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCkDj5d29uiWw7mpf4CghxG33c2DzTyDL9wkjfT93m0hsBpStnGV6tU3Z+C1UAUQ9brb92RfOEGWO6QHTol3DhnaSBBWLsT/4d47bqAuTUxzMdIsGb+EXCu1ZutEJasefzcp1VU2IcqlClYnow89FzDlVFgeUF0p0zvZLOssYqFfgN45Jn0+clxlpY2QdJJueWcuC4o+ND4lqYLF9Nvz92IDmyHMvrigG5DHxtxXoUed5pI+Z/wJz0z8DD3jwAWZ3FX4+ZJgCDHKPWcdzQwAhRQ8HuxEsbEo6cVwZ7w10wOTGaeAKzXGkZPjybKmYec0z1N8HQVra8ZkwX8qTnfReptAgMBAAECggEBAJ+AkbZjmekCKzyoyovZwHBPt/HBWzKynjZukwTtKVERamV0tsMWXafHSdzERObvBjglrQBUr9uh/1/yaqSAtf4kwY2HHWxWFnrGd3vLliJy/JZ5m8kNX8c8O31KEZRjjitiLZ6uXsxQ/NoCXEqvMrmdpV7sxW0Lc8uU1vPiMdGSnXOfbwNwQiUpEs5LlYM5ODfbxXx3RunBJozAfYgYpg7ZrgoKz8mNdMm1x97nHQ+rMbnYyqlTAA3BA42BlKqLt+auB/7xGKn/1ybTuy9Ho/olWLeVNs+3CMtD94pvXYxOc6c18LFdo7WgLHYau4Wgwy9V0saMabMtxoiBJQeNxmkCgYEA8EfLqkHTc5PckWVCJvcTZvJ0WsmxsCn5W7cVDUK2DePPOppEFUZrkVagRdj6mWnJ/DP8nykqhUIXRnmwo8vSBDq4n+Bh/kZ//f7itSN9BHoCBa/PdbqbTeTky2t01Wl+jYN5jV01G1z9HkQ4i7sPp/L26FXUNfZvDywtN1t4yqcCgYEArsnWwREcVT/uM2yebO7GfnfJXFWwRBIB0fEt3/m60N9+MnLtnrY7U70Zr7ShfPd5ui+G8+2fbhJ7nJQKsO+Qqt9aWg2jZUGeyCGz4/xRLBW7HHqOxHbM7K32eNcBL9hZ6dOgAk1o64TdDz3MWsElqxlKEXkgB/XQmyEYznuYCMsCgYEA6M/n2pPlWftOn+JI8pA70GfjrYP4EwTYg7ElSK/2zgaJZ/LJPQP6fdw9dvACAFusRh3pDB5LAMtE2hhWup5mY4qyENbMnB+bLHOnHnPAUnIVO4VZsmyYxiSeOytnDNEmud9GC17gch7rckQPtfQN+2FDM2LWN2MLwNvBA/4xT8kCgYB1S6X+ckkdPIXRpLa8S5CRFjne6PIc/CiUhtFOWPxxZ0n8+PtVYt11WJWAQCuO/VSHCZX65B/1chnZ/c8e5eWjhbfQbw6TyPGRRGzANncSqpKijex5E3B59FROy5pUTVAphob+hIxAYS0oKUSWMr/gjlwSVcKVFPUk5ZUMHAzu+QKBgC2n/1TxoDg3CEwyZ6r6VQI+2GRKM+tdjU/FV7F7uhBS57aSPhzxhJj1IsgsdJJHuD1XM7Uz1gSCHevlgx39BJ0gW16xRXR8sTQAc/5fTTh52RlhWBy0mXymhhB0cgFMT//3tBrCC8LSYdbrsvAwUYUdIlVci9T7JEU1fJw4dCjG",
        //异步通知地址
        'notify_url' => "http://www.api.ybsat.com/interface.php?c=pay&a=notify_url",
        //同步跳转
        'return_url' => "http://www.api.ybsat.com/interface.php?c=pay&a=return_url",
        //编码格式
        'charset' => "UTF-8",
        //签名方式
        'sign_type' => "RSA2",
        //支付宝网关
        'gatewayUrl' => "https://openapi.alipaydev.com/gateway.do",
        //支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
        'alipay_public_key' => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApA4+XdvbolsO5qX+AoIcRt93Ng808gy/cJI30/d5tIbAaUrZxlerVN2fgtVAFEPW62/dkXzhBljukB06Jdw4Z2kgQVi7E/+HeO26gLk1MczHSLBm/hFwrtWbrRCWrHn83KdVVNiHKpQpWJ6MPPRcw5VRYHlBdKdM72SzrLGKhX4DeOSZ9PnJcZaWNkHSSbnlnLguKPjQ+JamCxfTb8/diA5shzL64oBuQx8bcV6FHneaSPmf8Cc9M/Aw948AFmdxV+PmSYAgxyj1nHc0MAIUUPB7sRLGxKOnFcGe8NdMDkxmngCs1xpGT48mypmHnNM9TfB0Fa2vGZMF/Kk530XqbQIDAQAB",
    ),

    //微信支付配置
    'WX_CONF' => array(
        'app_id' => '',
        'mch_id' => '',
        'api_key' => '',
        'notify_url' => '',
        'key' => '',
    ),

    //积分添加策略
    'SCORE' => array(
        'add_question' => 1,
        'sa_feedback' => 2,
        'sa_answer' => 2,
        'sa_agree_times' => 1,
    ),

    // 状态值=>状态信息
    'STATUS' => array(
        '101' => "未知异常",
        '200' => "一切正常",
        '201' => "参数异常",
        '202' => "农医问药已存在该手机用户",
        '203' => "注册失败",
        '204' => "用户名或密码错误",
        '205' => "该手机还未注册",
        '206' => "验证码发送失败",
        '207' => "验证码不正确",
        '208' => "重置密码失败",
        '209' => "已经发送过验证码，不能重复发送，请注意接收验证码",
        '210' => "没有子地区了",
        '211' => "手机用户信息异常",
        '212' => "没有填写要更新的资料或数据更新失败",
        '213' => "图片没有上传成功",
        '214' => "你还没有登陆",
        '215' => "插入数据失败",
        '216' => "未登录不能操作",
        '217' => "数据已存在",
        '218' => "参数错误",
        '219' => "删除失败",
        '220' => "更新失败",
        '221' => "不能对自己操作",
        '222' => "您的账号已禁用~",
        '223' => "验证码超时~",
        '224' => "悬赏积分不能超过您账户的积分哦",
        '225' => "不能频繁提交数据",
        '226' => "数据获取错误，请稍候再试",
        '227' => "图片写入失败,请稍候再试",
        '228' => "反馈数据插入失败",
        '229' => "反馈数据插入成功",
        '230' => "查询失败或数据为空",
        '231' => "未收藏",
        '232' => "已收藏",
        '233' => "收藏成功",
        '244' => "收藏失败",
        '245' => "正在审核中"
    ),

    'MESS_TYPE' => array(
        'reply' => '回复了你',
        'apply' => '邀请了你',
        'agree' => '赞了你',
        'attention' => '关注了你',
        'system' => ''
    ),
);
